package com.yang.aop;

import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.stereotype.Component;

/**
 * @Description: 切面
 * @author: Yang Qiang
 * @create: 2021-10-23 21:10
 */
@Component
@Aspect
public class NotVeryUsefulAspect {

	@Pointcut("execution(* com.yang.aop..*.b*(..))")
	public void point(){

	}



	@AfterReturning("point()")
	public void doAccessCheck() {
		System.out.println("我是后置通知");
	}
}
